package calendar;

import java.io.*;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by User on 2018/1/4.
 */
public class App {

    public static void main(String[] args) throws IOException {

        Calendar calendar = Calendar.getInstance();

        calendar.set(2000, 12,12, 12,12,12);

        System.out.println(calendar.getTime());

        Process process = Runtime.getRuntime().exec("javac -version");

        InputStream inputStream = process.getInputStream();

        InputStreamReader inputStreamReader = new InputStreamReader(inputStream);

        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);

        String line;
        while ((line = bufferedReader.readLine()) != null) System.out.println(line);

    }
}
